FUNCTION

min

pure function min(a: integer, b: integer): integer

Returns the lesser of two integer values; i.e. a if a < b, or b otherwise.

Parameters

  • a — the first integer to compare
  • b — the second integer to compare

Returns

the lesser of a and b

Since

0.6.0


pure function min(a: big_integer, b: big_integer): big_integer

Returns the lesser of two big_integer values; i.e. a if a < b, or b otherwise.

Parameters

  • a — the first big_integer to compare
  • b — the second big_integer to compare

Returns

the lesser of a and b

Since

0.12.0


pure function min(a: decimal, b: decimal): decimal

Returns the lesser of two decimal values; i.e. a if a < b, or b otherwise.

Parameters

  • a — the first decimal to compare
  • b — the second decimal to compare

Returns

the lesser of a and b

Since

0.9.1

© 2026 Chromia